<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
        </div>
    </div>
    <div class="main-container">
        <div class="tongbox tongbox6">
            <div class="tuo">
                <div class="tit">建设单位</div>
                <div class="con" id="jian_unit"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目状态</div>
                <div class="con" id="state_name"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目属性</div>
                <div class="con" id="business_name"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目负责人</div>
                <div class="con" id="man_xiang_name"></div>
            </div>
            <div class="tuo">
                <div class="tit">实际开工日期</div>
                <div class="con" id="actualdt"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目所属单位</div>
                <div class="con" id="chanid_name"></div>
            </div>
        </div>


        <div class="table-box tablenes">
            <div class="title">收入信息</div>
        </div>
        <div class="tongbox tongbox7">
            <div class="tuo">
                <div class="tit">施工合同(元)</div>
                <div class="con colorlan" id="shimoney"></div>
            </div>
            <div class="tuo">
                <div class="tit">累计审定产值(元)</div>
                <div class="con colorlan" id="lei_chan"></div>
            </div>
            <div class="tuo">
                <div class="tit">竣工结算金额(元)</div>
                <div class="con colorlan" id="junjiemoney"></div>
            </div>
            <div class="tuo">
                <div class="tit">累计开票(元)</div>
                <div class="con colorlan" id="lei_piaokai"></div>
            </div>
            <div class="tuo">
                <div class="tit">销项税(元)</div>
                <div class="con colorlan" id="kai_ratefee"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目收款 A(元)</div>
                <div class="con colorlan" id="lei_incomeengin"></div>
            </div>
            <div class="tuo">
                <div class="tit">其中工程回款(元)</div>
                <div class="con colorlan" id="lei_incomeengingchk"></div>
            </div>
        </div>


        <div class="table-box tablenes">
            <div class="title">支出信息</div>
        </div>
        <div class="tongbox tongbox6">
            <div class="tuo">
                <div class="tit">采购合同总额(元)</div>
                <div class="con colorlan" id="lei_caihe"></div>
            </div>
            <div class="tuo">
                <div class="tit">供应商累计结算(元)</div>
                <div class="con colorlan" id="lei_jie"></div>
            </div>
            <div class="tuo">
                <div class="tit">供应商累计付款 D(元)</div>
                <div class="con colorlan" id="lei_payment_engin"></div>
            </div>
            <div class="tuo">
                <div class="tit">项目费用报销 E(元)</div>
                <div class="con colorlan" id="lei_payment_bao"></div>
            </div>
            <div class="tuo">
                <div class="tit">累计收票(元)</div>
                <div class="con colorlan" id="lei_piaoshou"></div>
            </div>
            <div class="tuo">
                <div class="tit">进项税(元)</div>
                <div class="con colorlan" id="lei_shou_jin"></div>
            </div>
        </div>

        <div class="table-box tablenes">
            <div class="title">费用信息</div>
        </div>
        <div class="tongbox tongbox6">
            <div class="tuo">
                <div class="tit">内包扣款 B(元)</div>
                <div class="con colorlan" id="lei_payment_neikou"></div>
            </div>
            <div class="tuo">
                <div class="tit">内包付款 C(元)</div>
                <div class="con colorlan" id="lei_payment_neifu"></div>
            </div>
        </div>

        <div class="table-box tablenes">
            <div class="title">资金余额</div>
        </div>
        <div class="tongbox tongbox6">
            <div class="tuo">
                <div class="tit">项目余额 A-B-C-D-E(元)</div>
                <div class="con" id="lei_balance"></div>
            </div>
        </div>

        <div class="table-box tablenes">
            <div class="title">项目质保金</div>
        </div>
        <div class="tongbox tongbox6">
            <div class="tuo">
                <div class="tit">质保金比例</div>
                <div class="con colorlan" id="zhirate"></div>
            </div>
            <div class="tuo">
                <div class="tit">质保金金额(元)</div>
                <div class="con" id="zhifee"></div>
            </div>
            <div class="tuo">
                <div class="tit">质保期</div>
                <div class="con" id="zhinum"></div>
            </div>
            <div class="tuo">
                <div class="tit">质保金到期日期</div>
                <div class="con" id="zhidt"></div>
            </div>
        </div>

    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_engin_jing_lian_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                $(".pageshowtitle").text('【'+data.business_name+'项目】'+data.name)

                $("#jian_unit").text(data.jian_unit);
                $("#state_name").text(data.state_name);
                $("#business_name").text(data.business_name);
                $("#man_xiang_name").text(data.man_xiang_name);
                $("#actualdt").text(data.actualdt);
                $("#chanid_name").text(data.chanid_name);


                $("#shimoney").text(parseFormatNum(data.shimoney)).click(function () {
                    openNavPage('查看施工合同信息','contract_shi/index.php?status=1&enginid='+data.id);
                });
                $("#lei_chan").text(parseFormatNum(data.lei_chan)).click(function () {
                    openNavPage('查看产值填报信息','engin_chan/index.php?status=1&enginid='+data.id);
                });
                $("#junjiemoney").text(parseFormatNum(data.junjiemoney)).click(function () {
                    openNavPage('查看竣工结算信息','engin_junjie/index.php?status=1&enginid='+data.id);
                });
                $("#lei_piaokai").text(parseFormatNum(data.lei_piaokai)).click(function () {
                    openNavPage('查看开票信息','piao_kai/index.php?status=1&enginid='+data.id);
                });
                $("#kai_ratefee").text(parseFormatNum(data.kai_ratefee)).click(function () {
                    openNavPage('查看开票明细信息','piao_kai_hui/index.php?status=1&enginid='+data.id);
                });
                $("#lei_incomeengin").text(parseFormatNum(data.lei_incomeengin)).click(function () {
                    openNavPage('查看项目收款信息','income_engin/index.php?status=1&enginid='+data.id+'&budname='+encodeURIComponent('工程款垫资款'));
                });
                $("#lei_incomeengingchk").text(parseFormatNum(data.lei_incomeengingchk)).click(function () {
                    openNavPage('查看项目收款信息','income_engin/index.php?status=1&enginid='+data.id+'&budname='+encodeURIComponent('工程款'));
                });



                $("#lei_caihe").text(parseFormatNum(data.lei_caihe)).click(function () {
                    openNavPage('查看采购合同信息','contract_cai/index.php?status=1&enginid='+data.id);
                });
                $("#lei_jie").text(parseFormatNum(data.lei_jie)).click(function () {
                    openPage('../tong_pub/gonglei.php?enginid='+data.id, '80%', '80%');
                });
                $("#lei_payment_engin").text(parseFormatNum(data.lei_payment_engin)).click(function () {
                    openNavPage('查看供应商累计付款信息','payment_engin/index.php?status=1&enginid='+data.id);
                });
                $("#lei_payment_bao").text(parseFormatNum(data.lei_payment_bao)).click(function () {
                    openNavPage('查看项目费用报销信息','payment_bao/index.php?status=1&enginid='+data.id);
                });
                $("#lei_piaoshou").text(parseFormatNum(data.lei_piaoshou)).click(function () {
                    openNavPage('查看收票信息','piao_shou/index.php?status=1&enginid='+data.id);
                });
                $("#lei_shou_jin").text(parseFormatNum(data.lei_shou_jin)).click(function () {
                    openNavPage('查看收票明细信息','piao_shou_hui/index.php?status=1&enginid='+data.id);
                });



                $("#lei_payment_neikou").text(parseFormatNum(data.lei_payment_neikou)).click(function () {
                    openNavPage('查看内包扣款信息','payment_neikou/index.php?status=1&enginid='+data.id);
                });
                $("#lei_payment_neifu").text(parseFormatNum(data.lei_payment_neifu)).click(function () {
                    openNavPage('查看内包付款信息','payment_neifu/index.php?status=1&enginid='+data.id);
                });

                $("#lei_balance").text(parseFormatNum(data.lei_balance));

                $("#zhirate").text(parseFormatNum(data.zhirate)).click(function () {
                    openPage('../contract_shi/show.php?id='+data.shiid, '80%', '80%');
                });
                $("#zhifee").text(parseFormatNum(data.zhifee));
                $("#zhinum").text(data.zhinum);
                $("#zhidt").text(data.zhidt);
                render_from();
            }
        });

    });




</script>
</body>
</html>




